<?php


namespace App\Http\Controllers\Api\Repositories;

use App\Models\WxFeedback as Model;

class WxFeedbackRepositories
{
    /**
     * 添加
     * @param [$uid,$feedback_type,$feedback_content]
     * @return bool
     */
    public static function add($uid, $feedback_type, $feedback_content)
    {

        $feedbackModel = new Model();

        $feedbackModel->user_id = $uid;
        $feedbackModel->feedback_type = $feedback_type;
        $feedbackModel->feedback_content = $feedback_content;
        $feedbackModel->feedback_state = 0;


        return $feedbackModel->save();

    }

}
